<section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="${ctx!}/static/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
        </div>
        <div class="pull-left info">
            <p>${loginUser['real_name']!}</p>
            <a href="#"><i class="fa fa-circle text-success"></i> ${loginUser['username']!}</a>
        </div>
    </div>
    <ul class="sidebar-menu">
        <#if loginResources?? && loginResources?size gt 0>
            <#list loginResources as item>
                <li class="treeview">
                    <a href="${ctx!}/${item['url']!}" id="${item['action']!}">
                        <i class="${item['icon']!}"></i> <span>${item['name']!}</span> </i>
                    </a>
                    <#if item['children']?? && item['children']?size gt 0>
                        <ul class="treeview-menu">
                        <#list item['children'] as child>
                            <li><a href="${ctx!}/${child['url']!}" id="${child['action']!}"> ${child['name']!}</a></li>
                        </#list>
                        </ul>
                    </#if>
                </li>
            </#list>
        </#if>
    </ul>
</section>